
<form id="search_mini_form" action="<?php echo $this->helper('catalogsearch')->getResultUrl() ?>" method="get">
    <div class="">
<!--        <label for="search"><?php echo $this->__('Search:') ?></label>-->
        <?php $categorySearchHelper = $this->helper('catalogcategorysearch'); ?>
       <select class="select_search" id="<?php echo $categorySearchHelper->getCategoryParamName() ?>" name="<?php echo $categorySearchHelper->getCategoryParamName() ?>">
            <option value=""><?php echo $this->__('All Categories') ?></option>
            <?php foreach ($this->getSearchableCategories() as $mainCategory): ?>
<!--                 <option value="<?php echo $mainCategory->getEntityId()?>"><?php echo $mainCategory->getName() ?></option>-->
                <?php if ($categorySearchHelper->showSubCategories()) : ?>
                    <?php foreach ($this->getSearchableSubCategories($mainCategory) as $category) : ?>
                               
                        <option value="<?php echo $category->getEntityId()?>"><?php echo /*$categorySearchHelper->getIndentationText().*/$category->getName()?></option>
                    <?php endforeach;?>
                <?php endif ?>
            <?php endforeach;?>
        </select>
        <input id="esearch" type="text" name="<?php echo $this->helper('catalogsearch')->getQueryParamName() ?>" autocomplete="on" class="input_seach" />
        <div class="search_btn nav-container">
            <button type="submit" title="<?php echo $this->__('') ?>" class="submit-input"><span><span><?php echo $this->__('Go') ?></span></span></button>
            </div>
        <div id="search_autocomplete" class="search-autocomplete"></div>
        
    </div>
</form>
